﻿using CodeSaude.Domain.Entities;
using CodeSaude.Domain.Interfaces.Repository;
using CodeSaude.Domain.Interfaces.Service;

namespace CodeSaude.Domain.Services
{
    public class DiagnosticoService : BaseService<Diagnostico>, IDiagnosticoService
    {

        private readonly IDiagnosticoRepository _diagnosticoRepository;

        public DiagnosticoService(IDiagnosticoRepository diagnosticoRepository)
            : base(diagnosticoRepository)
        {
            _diagnosticoRepository = diagnosticoRepository;
        }

        public void SaveChanges()
        {
            _diagnosticoRepository.SaveChanges();
        }
    }
}
